package net.jxtz.jxtzos.entity.spider;


import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author lmh
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(exclude = {"id", "createTime"})
@Accessors(chain = true)
@TableName("spider_housing_authority")
public class SpiderNanchangHousingAuthority implements Serializable {

    private static final long serialVersionUID = 1L;

    @ExcelIgnore
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    @ExcelIgnore
    private Integer issue;

    @ExcelProperty("标题")
    private String title;

    @ExcelProperty("小区名")
    @TableField(value = "another_name")
    private String another_name;

    @ExcelProperty("区域")
    private String name;

    @ExcelIgnore
    @JsonProperty("PROJECTALL_ID")
    @TableField(value = "PROJECTALL_ID")
    private Integer PROJECTALL_ID;

    @ExcelProperty("楼层")
    @JsonProperty("SEAINO")
    @TableField(value = "SEAINO")
    private String SEAINO; // 楼层

    @ExcelIgnore
    @JsonProperty("BUILDING_ID")
    @TableField(value = "BUILDING_ID")
    private Integer BUILDING_ID; // 楼栋id

    @ExcelIgnore
    @JsonProperty("PRESELL_NAME")
    @TableField("PRESELL_NAME")
    private String PRESELL_NAME; // 预售证编号

    @ExcelIgnore
    @JsonProperty("PRESELL_CREATEDATE")
    @TableField("PRESELL_CREATEDATE")
    private String PRESELL_CREATEDATE; //  发售日期

    @ExcelProperty("地址")
    @JsonProperty("HOUSE_ADDRESS")
    @TableField("HOUSE_ADDRESS")
    private String HOUSE_ADDRESS; // 地址

    @ExcelProperty("售价")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @JsonProperty("ONEPRICE")
    @TableField("ONEPRICE")
    private BigDecimal ONEPRICE; // 售价

    @ExcelProperty("装修价")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @JsonProperty("DECORATION_PRICE")
    @TableField("DECORATION_PRICE")
    private BigDecimal DECORATION_PRICE; // 装修价

    // 创建时间
    @ExcelIgnore
    @TableField(fill = FieldFill.INSERT, value = "createTime")
    private Integer createTime;

}
